Fixup some raw sqls!
authorReedy <reedy@wikimedia.org>
Sat, 28 Apr 2012 00:07:43 +0000 (01:07 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 28 Apr 2012 00:07:43 +0000 (01:07 +0100)
Change-Id: I06dc7a76cbfeb684cb056fb4f71dd1012d953069

includes/specials/SpecialWatchlist.php

index 0c5f11c..e0f2ff2 100644 (file)
@@ -262,7 +262,14 @@ class SpecialWatchlist extends SpecialPage {
                $tables = array( 'recentchanges', 'watchlist' );
                $fields = array( $dbr->tableName( 'recentchanges' ) . '.*' );
                $join_conds = array(
-                       'watchlist' => array('INNER JOIN',"wl_user='{$user->getId()}' AND wl_namespace=rc_namespace AND wl_title=rc_title"),
+                       'watchlist' => array(
+                               'INNER JOIN',
+                               array(
+                                       'wl_user' => $user->getId(),
+                                       'wl_namespace=rc_namespace',
+                                       'wl_title=rc_title'
+                               ),
+                       ),
                );
                $options = array( 'ORDER BY' => 'rc_timestamp DESC' );
                if( $wgShowUpdatedMarker ) {